import * as webpack from 'webpack';

import WebpackConfig from '../config/Webpack.config';

const buildConfig = new WebpackConfig('production');

webpack(buildConfig).run((err: Error, stats) => {
    if (err) {
        console.log('打包出錯啦:', err);
    }
    console.log(stats);

})